package exception;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * finally:最终都会执行的
 */
public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("程序开始！");
        try {
            String line = "null";
            System.out.println(line.length());
            return;
        } catch (Exception e) {
            System.out.println("出错了");

        } finally {
            System.out.println("finally中的diamante指执行了");
        }


        try {

        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
        }

        System.out.println("程序结束了");
    }
}
